All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----sjl.Bind2ndPredicate
Bind2ndPredicate
class can wrap
a Predicate2
class so that it appears as
a Predicate1
.
Algo.find(list.begin(), list.end(), new Bind2ndPredicate(new Integer(5), new FuncLessInteger()));The above example will return a iterator to the first element in the list with a value greater or equal to 5.
Copyright © 1996 Finn Bock
public Bind2ndPredicate(Predicate2 pred, Object val)
public boolean compare(Object o)
All Packages Class Hierarchy This Package Previous Next Index